<?php
namespace Home\Controller;
use Think\Controller;
//set_time_limit(100);
/**
 * 百度地图
 * Class LetterController
 * @package Home\Controller
 */

class BaiduController extends Controller {
    /**
     * @param $fun：1-收货地址、2-门店自提点、3-门店地址
     */
    public function index(){
        $ak = C('BAIDU_AK');
        //$lng = S('Latitude1');
        //$lat = S('Longitude1');
        $lng = 106.535645;
        $lat = 29.61527;
        $fun = I('fun') ? I('fun') : 1;

        //dump($ak);
        $this->fun = $fun;
        $this->assign('ak',$ak);
        $this->assign('lat',$lat);
        $this->assign('lng',$lng);
       $this->display('baidu');
    }

    public function mapDeposit(){
        $store_lnt = I('lng') ? I('lng') : $this->error('参数错误');
        $store_lat = I('lat') ? I('lat') : $this->error('参数错误');
        $address_detail = I('site') ? I('site') : $this->error('参数错误');
        $fun = I('fun') ? I('fun') : $this->error('参数错误');
        dump($address_detail);
    }


  

    

   

}